﻿

using Lamex.Base;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Lamex.SystemManager.Model
{

    [DataContract]
    [KnownType("GetKnowTypes")]  
    [Serializable]
    [Table(TableName = "Sys_MyUser", KeyName = "isid", OutoKeyValue = "isid", sortIndex = "CreateTime")]
     
    public class TUserInfo 
    {
        private int _isid;
        private string _Account = "";
        private string _UserName = "";
        private string _Address = "";
        private string _Tel = "";
        private string _Email = "";
        private string _Password = "";
        private DateTime? _LastLoginTime;
        private DateTime? _LastLogoutTime;
        private string _IsLocked = "";
        private DateTime? _CreateTime;
        private string _FlagAdmin = "";
        private int _LoginCounter = 0;
        private string _NovellAccount = "";
        private string _DomainName = "";
        private string _DataSets = "";
        private decimal _Money = 0;
        private decimal _dMoney = 0;
        private double _duMoney = 0;
        private bool isFlag;
        private string _Company_ID = "";
        private string _CompanyName = "";
        private string _Dept_ID = "";
        private string _DeptName = "";
        private string _IsFirstLogin = "";
        private int _ChangeLanguage = 0;
        private string _IPAddress;
        private string _MacAddress;


        /// <summary>
        /// 
        /// </summary>

        [DataMember]
        public int isid
        {
            get { return _isid; }
            set { _isid = value; }
        }

        [DataMember]

        public string Account
        {
            get { return _Account; }
            set { _Account = value; }
        }
         [DataMember]
        public string UserName
        {
            get { return _UserName; }
            set { _UserName = value; }
        }
         [DataMember]
        public string Address
        {
            get { return _Address; }
            set { _Address = value; }
        }
         [DataMember]
        public string Tel
        {
            get { return _Tel; }
            set { _Tel = value; }
        }
         [DataMember]
        public string Email
        {
            get { return _Email; }
            set { _Email = value; }
        }
         [DataMember]
        public string Password
        {
            get { return _Password; }
            set { _Password = value; }
        }
         [DataMember]
        public DateTime? LastLoginTime
        {
            get { return _LastLoginTime; }
            set { _LastLoginTime = value; }
        }
         [DataMember]
        public DateTime? LastLogoutTime
        {
            get { return _LastLogoutTime; }
            set { _LastLogoutTime = value; }
        }
         [DataMember]
        public string IsLocked
        {
            get { return _IsLocked; }
            set { _IsLocked = value; }
        }
         [DataMember]
        public DateTime? CreateTime
        {
            get { return _CreateTime; }
            set { _CreateTime = value; }
        }
         [DataMember]
        public string FlagAdmin
        {
            get { return _FlagAdmin; }
            set { _FlagAdmin = value; }
        }
        //[NotMapped]
        [DataMember]
        public int LoginCounter
        {
            get { return _LoginCounter; }
            set { _LoginCounter = value; }
        }
         [DataMember]
        public string NovellAccount
        {
            get { return _NovellAccount; }
            set { _NovellAccount = value; }
        }
        public string DomainName
        {
            get { return _DomainName; }
            set { _DomainName = value; }
        }
         [DataMember]
        public string DataSets
        {
            get { return _DataSets; }
            set { _DataSets = value; }
        }
         [DataMember]
        public decimal Money
        {
            get { return _Money; }
            set { _Money = value; }
        }
        [DataMember]
        public string Company_ID
         {
             get { return _Company_ID; }
             set { _Company_ID = value; }
         }
        [DataMember]
        public string CompanyName
        {
            get { return _CompanyName; }
            set { _CompanyName = value; }
        }
        [DataMember]
        public string Dept_ID
        {
            get { return _Dept_ID; }
            set { _Dept_ID = value; }
        }
        [DataMember]
        public string DeptName
        {
            get { return _DeptName; }
            set { _DeptName = value; }
        }
        [DataMember]
        public string IsFirstLogin
        {
            get { return _IsFirstLogin; }
            set { _IsFirstLogin = value; }
        }
        [DataMember]
        public string IPAddress
        {
            get { return _IPAddress; }
            set { _IPAddress = value; }
        }
        [DataMember]
        public string MacAddress
        {
            get { return _MacAddress; }
            set { _MacAddress = value; }
        }
        
        //public int ChangeLanguage
        //{
        //    get { return _ChangeLanguage; }
        //    set { _ChangeLanguage = value; }
        //}

    }
}
